
class Student:
    def say_hello(self):
        print('老师好！！！')


class Teacher :
    def say_hello(self):
        print('同学们好！！')

xs = Student()
ls = Teacher()


def fun(obj):
    obj.say_hello()

fun(xs)

fun(ls)